<%@page import="model.ViewProduct"%>
<%@page import="helperclasses.Product"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ include file="MainBricks/includeStuff.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Atrium Home Page</title>
<link href="style/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
	<div id="wrapper">
		<%@ include file="MainBricks/header.jsp"%>
		<!-- end #header -->
		<%@ include file="MainBricks/topmenu.jsp"%>
		<!-- end #menu -->
		<div id="page">
			<div id="page-bgtop">
				<div id="page-bgbtm">
					<div id="content">
						<%@ include file="MainBricks/includeinContent.jsp"%>
						<center><h3>Facturi</h3></center>						
						<br>
						<table class="stocktable">
							<tr>
								<th>No.</th>
								<th>Numar Nir</th>
								<th>Cod Factura</th>
								<th>Data Factura</th>
								<th>Nir 1</th>
								<th>Nir 2</th>
								<th>Bon Consum</th>
							</tr>
							<c:forEach items="${listafacturi}" var="fact" varStatus="rowCounter">
								<tr>
									<td>${rowCounter.count}</td>
									<td>${fact.nirNumber}</td>
									<td>${fact.codFactura}</td>
									<td>${fact.dataFactura}</td>
									<c:choose>
										<c:when test="${fact.isType1 == 'yes' }">
											<td align="center"><a href="viewbill.do?id=${fact.facturaId}&t=1" target="_blank">pdf</a></td>
										</c:when>
										<c:otherwise>
											<td></td>
										</c:otherwise>
									</c:choose>
									<c:choose>
										<c:when test="${fact.isType2 == 'yes' }">
											<td align="center"><a href="viewbill.do?id=${fact.facturaId}&t=2" target="_blank">pdf</a></td>
										</c:when>
										<c:otherwise>
											<td></td>
										</c:otherwise>
									</c:choose>
									<c:choose>
										<c:when test="${fact.isType2 == 'yes' }">
											<td align="center"><a href="viewbill.do?id=${fact.facturaId}&t=3" target="_blank">pdf</a></td>
										</c:when>
										<c:otherwise>
											<td></td>
										</c:otherwise>
									</c:choose>
								</tr>
							</c:forEach>
						</table>
					</div>
					<!-- end #content -->
					<%@ include file="MainBricks/leftmenu.jsp"%>
					<!-- end #sidebar -->
					<div style="clear: both;">&nbsp;</div>
				</div>
			</div>
		</div>
		<!-- end #page -->
	</div>
	<%@ include file="MainBricks/footer.jsp"%>
	<!-- end #footer -->
</body>
</html>